package com.wanmei.controller.product;

import com.wanmei.commons.ResultUtils;
import com.wanmei.pojo.Product;
import com.wanmei.service.Impl.ProductpicServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("product")
public class EditProductImgListController {
    @Autowired
    private ProductpicServiceImpl productpicService;
    /**
     * 商品图片列表
     * @return
     */
    @RequestMapping("editproductImgList")
    public ModelAndView editProductImgListView(@RequestParam("pid")int pid) {
        Product product = productpicService.selectByPID(pid);
        ModelAndView model = new ModelAndView();
        model.addObject("pageInfo",product);
        model.setViewName("/product/editProductImgList");
        return model;
    }

}
